package org.shanyu.tide.controller;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.shanyu.tide.model.vo.LoginBean;
import org.shanyu.tide.service.HrService;
import org.shanyu.tide.utils.JsonResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.web.bind.annotation.*;

import javax.naming.AuthenticationException;
import javax.servlet.http.HttpServletRequest;

@RestController
@Api(tags = "认证相关接口")
@RequestMapping("/auth")
public class AuthController {



    @Autowired
    HrService hrService;

    @Autowired
    private AuthenticationManager authenticationManager;

    @ApiOperation("登录接口")
    @PostMapping("/login")
    public void login(@RequestBody LoginBean user, HttpServletRequest request) throws AuthenticationException {

    }






}
